// 接口方法, 只负责调用一个接口, 返回一个Promise对象
import request from '@/utils/request'
// 登录接口
export const loginApi = ({ mobile, code }) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data: {
      mobile,
      code
    }
  })
}
export const getAllChannelListAPI = () => {
  return request({
    url: '/v1_0/channels'
  })
}
